// Package dao
// Created by GoLand
// @User: lenora
// @Date: 2024/8/23
// @Time: 14:44

package dao

import (
	"camp/microbook/internal/repository/dao/article"
	"gorm.io/gorm"
)

func InitTables(db *gorm.DB) error {
	return db.AutoMigrate(
		&User{},
		&article.Articles{},
		&article.PublishArticle{},
		&Job{},
	)
}
